﻿/*
 * KLF Headless Browser
 * Written by Kris Oye <kristianoye@gmail.com>
 * Copyright (C) 2011-2012.  All rights reserved.
 */
namespace KLF.Lib.Browser.DOM.HTML
{
    #region Using Statements

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    #endregion

    /// <summary>
    /// 
    /// </summary>
    public class HTMLBodyElement : HTMLElement
    {
        #region Constructors

        internal HTMLBodyElement(Document owner)
            : base(owner, HTMLConstants.HTML_TAG_BODY)
        {
        }

        #endregion

        #region DOM Level 2 HTML Compliance

        /// <summary>
        /// Color of active links (after mouse-button down, but before mouse-
        /// button up). See the alink attribute definition in HTML 4.01. This 
        /// attribute is deprecated in HTML 4.01.
        /// </summary>
        [Obsolete("aLink property has been deprecated", false)]
        public string aLink
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_ALINK);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_ALINK, value);
            }
        }

        /// <summary>
        /// URI [IETF RFC 2396] of the background texture tile image. See the 
        /// background attribute definition in HTML 4.01. This attribute is 
        /// deprecated in HTML 4.01.
        /// </summary>
        [Obsolete("Background property has been deprecated", false)]
        public string background
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_BACKGROUND);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_BACKGROUND, value);
            }
        }

        /// <summary>
        /// Document background color. See the bgcolor attribute
        /// definition in HTML 4.01. This attribute is deprecated
        /// in HTML 4.01.
        /// </summary>
        [Obsolete("bgColor property has been deprecated", false)]
        public string bgColor
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_BGCOLOR);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_BGCOLOR, value);
            }
        }

        /// <summary>
        /// Color of links that are not active and unvisited. See the link 
        /// attribute definition in HTML 4.01. This attribute is deprecated
        /// in HTML 4.01.
        /// </summary>
        [Obsolete("link property has been deprecated", false)]
        public string link
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_LINK);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_LINK, value);
            }
        }

        /// <summary>
        /// Fires when the document loads... this actually sets the onload in
        /// the document and window objects.
        /// </summary>
        public object onload
        {
            get;
            set;
        }

        /// <summary>
        /// Document text color. See the text attribute definition in HTML 4.01.
        /// This attribute is deprecated in HTML 4.01.
        /// </summary>
        [Obsolete("text property has been deprecated", false)]
        public string text
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_TEXT);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_TEXT, value);
            }
        }

        /// <summary>
        /// Color of links that have been visited by the user. See the vlink
        /// attribute definition in HTML 4.01. This attribute is deprecated 
        /// in HTML 4.01.
        /// </summary>
        [Obsolete("vLink property has been deprecated", false)]
        public string vLink
        {
            get
            {
                return getAttribute(HTMLConstants.HTML_ATT_VLINK);
            }
            set
            {
                setAttribute(HTMLConstants.HTML_ATT_VLINK, value);
            }
        }

        #endregion
    }
}
